
var mongoose = require('mongoose');
var Schema = mongoose.Schema;

var GroupSchema= new Schema({
    gid:{
        type:Number,
        default:0,
    },
    owner_uid:Number,
    gname:{
        type:String,
        default:"未命名",
    },
    userlist:{
        type:String,
        default:"[]",
    }
});


var Groups = mongoose.model('Groups', GroupSchema)

module.exports = Groups;